﻿<table cellspacing="0" cellpadding="0" class="cssgrid">
    <tbody>
        <tr class="category">
            <td width="30px" align="center" class="headercart productcategory" style="border-top: 1px solid #99BBE8;">
                <span class="norB">STT</span>
            </td>
            <td width="100px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Id</span>
            </td>
            <td width="180px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Tên</span>
            </td>
            <td width="100px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Loại</span>
            </td>
            <td width="120px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Ngày tham gia</span>
            </td>
            <td width="120px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Lần đăng nhập cuối</span>
            </td>
            <td width="80px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Trạng thái</span>
            </td>
            <td width="90px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;"></td>
        </tr>
        {#foreach $T.Items as account}
        <tr>
            <td width="30px" align="center" class="headercart">
                <span>{$T.account.RowNumber}</span>
            </td>
            <td width="100px" align="center" class="headercart">
                <span>{$T.account.Id}</span>
            </td>
            <td width="100px" align="center" class="headercart">
                <span>{$T.account.Name}</span>
            </td>
            <td width="100px" align="center" class="headercart">
                <span>{#if $T.account.TypeId==1}
                        Hilo
                    {#/if}
                    {#if $T.account.TypeId==2}
                        Facebook
                    {#/if}
                    {#if $T.account.TypeId==3}
                        Google
                    {#/if}
                    {#if $T.account.TypeId==4}
                        Yahoo
                    {#/if}
                    {#if $T.account.TypeId==5}
                        Twiter
                    {#/if}
                    {#if $T.account.TypeId==6}
                        Go.vn
                    {#/if}                    
                </span>
            </td>
            <td width="120px" align="center" class="headercart">

                <span>{COMMON.jSonDateToString($T.account.CreatedDate,1)}</span>

            </td>
            <td width="120px" align="center" class="headercart">

                <span>{COMMON.jSonDateToString($T.account.LastLogin,1)}</span>

            </td>
            <td width="80px" align="center" class="headercart">
                <span>{#if $T.account.Status>0}Kích hoạt{#else}Khóa{#/if}</span>
            </td>

            <td width="90px" align="center" class="headercart">
                <div class="function">
                    <ul>
                        <li><a id="aContextMenu" href="javascript:;"><span style="float: left;">Chọn chức năng</span>
                            <span class="drop">
                                <img src="/images/down.gif" /></span>
                            <div class="clear">
                            </div>
                        </a>
                            <ul class="context-menu" id="ul{$T.account.Id}">
                                {#if ($T.Permission & 2) == 2} {#if ($T.account.Status==1)}
                                <li id="liLock">Khóa</li>
                                {#else}
                                <li id="liUnlock">Kích hoạt</li>
                                {#/if}
                                {#/if}
                            </ul>
                        </li>
                    </ul>
                </div>
            </td>
        </tr>
        {#/for}
    </tbody>
</table>
